﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ingineria_prog
{
    class SedanFactory:AbstractCarFactory
    {

       static private AbstractCarFactory myobj = null;
        private SedanFactory() {}
       static public AbstractCarFactory getSedanFactory()
        {
            if (myobj == null)
                myobj = new SedanFactory();
            return myobj;
        }

       public Car getSedan()
       {
           Car c1 = new Sedan();
           return c1;
       }

     

    }
}
